package com.njh.tools.base;

/**
 * Created by niejiahuan on 2016/5/31.
 */
public abstract class BaseFPresenter<E ,T> extends BasePresenter {
    public BaseFragment mContext;
    public E mModel;
    public T mView;

    public void setVM(T v, E m,BaseFragment context) {
        this.mView = v;
        this.mModel = m;
        this.onStart();
        this.mContext=context;
        super.setVM(mView, (BaseModel) mModel,(BaseActivity) mContext.getBaseActivty());
    }

    public abstract void onStart();

    public void onDestroy(){
    }
}
